﻿@{
    ViewBag.Title = "文件目录";
}
@model List<MVCforPhotoWall.Models.FileModel>

<!DOCTYPE html>
<h2>书库</h2>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
</head>
<body>
    <div>
        <table class="table">
            <thead>
                <tr>
                    <th>文件名称</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var file in Model)
                {
                    <tr>
                        <td>@file.FileName</td>
                        <td>
                            <a href="@Url.Action("Read","BookList",new {filename = file.FileName })" class="btn btn-primary">阅读</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</body>
</html>
